package top.dfghhj.anhanx.oauth.convertor;

import org.springframework.beans.BeanUtils;
import top.dfghhj.anhanx.oauth.entity.DO.SysUser;
import top.dfghhj.anhanx.oauth.entity.DTO.SysUserDTO;

public class SysUserConvertor {

    public static SysUserDTO toDTO(SysUser sysUser) {
        SysUserDTO sysUserDTO = new SysUserDTO();
        BeanUtils.copyProperties(sysUser,sysUserDTO);
        return sysUserDTO;
    }

}
